#include<stdio.h>
struct point{
    int x;
    int y;
};
struct point* getStruct(struct point *p);
void output(struct point);
void print(const struct point *p);
int main(int argc,char const *argv[]){
    struct point y={0,0};
    getStruct(&y);
    output(y);
    output(*getStruct(&y));
    print(getStruct(&y));
    *getStruct(&y)=(struct point){1,2};
    //printf("%i,%i",y.x,y.y);
    output(y);
    print(&y);
}
struct point* getStruct(struct point *p){
    scanf("%d",&p->x);
    scanf("%d",&p->y);
    printf("%d,%d\n",p->x,p->y);
    return p;
}
void output(struct point p){
    printf("%d,%d\n",p.x,p.y);
}
void print(const struct point *p){
    printf("%d,%d\n",p->x,p->y);
}
